package org.datascooter.cglib.proxy.test;

import net.sf.cglib.proxy.Enhancer;

import org.datascooter.cglib.proxy.MethodInterceptorImpl;

public class Wrapper {

	@SuppressWarnings("unchecked")
	public static <T> T wrap(T obj) {
		return ((T) Enhancer.create(obj.getClass(), new MethodInterceptorImpl(obj)));
	}
}
